Allow override of Yahoo address field separators.
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Mon, 12 Dec 2005 19:37:26 +0000 (19:37 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Mon, 12 Dec 2005 19:37:26 +0000 (19:37 +0000)
gpsbabel/yahoo.c

index 095c86be92b107a10238af30a3d41883ac0ffee9..dfc16aca2467b40b65bfce504b9a0fe3ac76ca29 100644 (file)
 
 static FILE *ifd;
 static waypoint *wpt_tmp;
+static char *as;
 
 #define MYNAME "yahoo"
 
 static
 arglist_t yahoo_args[] = {
-       {0, 0, 0, 0, 0}
+       {"addrsep", &as, 
+       "String to separate concatenated address fields (default=\", \")", 
+       ", ", ARGTYPE_STRING },
+
 };
 
 static xg_callback     wpt_s, wpt_lat, wpt_lon, wpt_e;
@@ -96,7 +100,7 @@ void wpt_lon(const char *args, const char **unused)
 void   wpt_addr(const char *args, const char **unused)
 {
        if (wpt_tmp->notes) {
-               wpt_tmp->notes = xstrappend(wpt_tmp->notes, ", ");
+               wpt_tmp->notes = xstrappend(wpt_tmp->notes, as);
        }
        wpt_tmp->notes = xstrappend(wpt_tmp->notes, args);
 }